package com.zxl.muban.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
public class User extends BaseDomain{
//    public final static String ADMIN_NORMAL = "0";

    @TableId(value = "id")
    private String id;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "email")
    private String email;

    @TableField(value = "name")
    private String name;

    @TableField(value = "admin 是否是管理员 0：不是 1：是")
    private String admin;

    @TableField(value = "状态 0：正常 1：关闭")
    private String status;

    @TableField(value = "password")
    @JsonIgnore
    private String password;


    @TableField(value = "salt")
    @JsonIgnore
    private String salt;

}
